<admintpl file="header" />
<style type="text/css">
.pic-list li {
	margin-bottom: 5px;
}
.badge{
	padding: 2px 6px; float: right;
}
.badge.b1{
	background-color:#f39c12;
}
.badge.b2{
	background-color:#217dbb;
}
.badge.b3{
	background-color:#d62c1a;
}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<!--<li><a href="{:U('AdminRecharge/index')}">充值记录</a></li>-->
			<li class="active"><a href="javascript:;" target="_self">审核</a></li>
		</ul>
		<form action="{:U('Examine/detail_examine')}" method="post" class="form-horizontal js-ajax-forms" onsubmit="return check_form();" enctype="multipart/form-data">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<tr>
							<th>待充值机构类型</th>
							<td>{$item.company_type}</td>
						</tr>
						<tr>
							<th>待充值机构名称</th>
							<td>{$item.company_name}</td>
						</tr>
						<tr>
							<th>机构账户余额</th>
							<td>{$item.company_balance}</td>
						</tr>
						<tr>
							<th>充值金额</th>
							<td>{$item.price}</td>
						</tr>
						<tr>
							<th>赠送金额</th>
							<td>{$item.general_price}</td>
						</tr>
						<tr>
							<th>充值说明</th>
							<td>
								<textarea name="desc" width="400" placeholder="请输入充值描述" <if condition="$item['status'] != 1">readonly</if>>{$item.desc}</textarea>
							</td>
						</tr>
						<tr>
							<th>充值说明</th>
							<td>
								<input type="radio" name="status" value="2" 
									<if condition="$item['status'] == 1 || $item['status'] == 2">checked="checked"</if>
									<if condition="$item['status'] != 1">readonly</if>
								>审核通过
								<input type="radio" name="status" value="3" 
									<if condition="$item['status'] == 3">checked="checked"</if>
									<if condition="$item['status'] != 1">readonly</if>
								>审核不通过
							</td>
						</tr>
						<tr>
							<th>当前审核进度</th>
							<td>
								<div class="well">
									<ul>
										<foreach name="examine_list" item="row">
										<li>{$row.step}、【{$row.name}】{$row.user_nicename}：{$row.desc}<span class="badge b{$row.status}" style="">{$row.status_label}</span></li>
										</foreach>
									</ul>
								</div>
							</td>
						</tr>
                    </table>
				</div>

			</div>
			<div class="form-actions">
               	<input type="hidden" name="examine_id" value="{$item.id}"/>
               	<if condition="$item['status'] == 1">
					<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
               	</if>
				<a class="btn" href="{:U('Examine/index')}">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
	<script>
		function check_form(){
			
			return true;
		}
	</script>
	</body>
</html>